# coding:utf-8
"""
@author: jing
@contact: 529548204@qq.com
@file: urls.py
@time: 2022/5/24 16:56
"""
from django.conf.urls import include
from django.urls import path
from rest_framework import routers

from . import views

app_name = "users"
urlpatterns = [
    path(r'login/', views.GetLoginTokenView.as_view({"post": "login"})),
    path(r'register/', views.UserView.as_view({"post": "user_register"})),
    path(r'list/', views.UserView.as_view({"get": "userlist"})),
    path(r'detail/<int:pk>/', views.UserView.as_view({"get": "userdetail"})),
    path(r'logout/', views.UserView.as_view({"post": "userlogout"})),
    # path(r'login/', views.GetLoginTokenView.as_view()),

    # path(r'<int:pk>',views.CaseDetailView.as_view()),
    # path(r'casedata',views.CaseDataView.as_view()),
    # path(r'casedata/<int:pk>',views.CaseDataView.as_view())
]
# router = routers.SimpleRouter()
# router.register(r'list', views.UserView, basename="users")
